program Project2;

{$APPTYPE CONSOLE}

uses
  SysUtils;
type
  arrint = array of integer;  
var
  mass: array of arrint;
  i, n, j, n1: integer;
begin
  readln(n);
  setlength (mass, n);
  for i:=0 to n-1 do
  begin
    for j:=0 to n-1 do
    begin
      mass[i][j]:=0;
    end;
  end;
  if (n mod 2 = 0) then
  begin
    n1:= n div 2;
  end;
  if (n+1 mod 2 = 0) then
  begin
    n1:= (n-1 div 2) + 1;
  end;
  mass[0][n1+1]:= 1;
  for i:=0 to n-1 do
  begin
    for j:=1 to n-1 do
    begin
      if i=0 then
      begin
        mass[i][j]:= mass[i+1][j-1];
      end;
      if i=n-1 then
      begin
        mass[i][j]:= mass[i-1][j-1];
      end;
      if (0<i) and (i<n-1) then
      begin
        mass[i][j]:= mass[i-1][j-1] + mass[i+1][j-1];
      end;
    end;
  end;
  for i:=0 to n-1 do
  begin
    for j:=1 to n-1 do
    begin
      if mass[i][j]=0 then
      begin
        writeln (' ');
      end;
    end;
  end;
  for i:=0 to n-1 do
  begin
    for j:=1 to n-1 do
    begin
      if mass[i][j]>0 then
      begin
        writeln (mass[i][j]);
      end;
    end;
  end;
  readln;
end.
